/*Copyright (c) 2024 Deng Zicheng*/
/* "CarController" is licensed under Mulan PSL v2.*/
/*You can use this software according to the terms and conditions of the Mulan PSL v2.*/
/*You may obtain a copy of Mulan PSL v2 at:*/
/* http://license.coscl.org.cn/MulanPSL2*/
/* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.*/
/*See the Mulan PSL v2 for more details.*/
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
}

@media screen and (device-type: phone) and (orientation: landscape){
}

#controller_face{
    width: 100%;
    height: 100%;
    background-image:url("/common/images/background.png");
    background-size: 100% 100%;
}
#rocker_area{
    border: 2px,solid,#ff00ffa6;
    width: 30%;
    height: 100%;
    display: grid;
    grid-template-columns:100%;
    grid-columns-gap: 24px;
    grid-rows-gap: 24px;
    grid-template-rows: 30% 60%;
}
#information_area{
    border: 2px,solid,#ff00ffa6;
    width: 40%;
    height: 100%;
/*    display: grid;*/
/*    grid-template-columns:100%;*/
/*    grid-columns-gap: 24px;*/
/*    grid-rows-gap: 24px;*/
/*    grid-template-rows: 100px 150px 80px;*/
}
#speed_area{
    border: 2px,solid,#ff00ffa6;
    width: 30%;
    height: 100%;
    padding-left: 60px;
}
switch{
    width: 100px;
    height: 80px;
    margin-left: 50px;
    margin-right: 50px;
}
#degree_area{
    grid-row-start: 0;
    grid-row-end: 0;
    grid-column-start: 0;
    grid-column-end: 0;
    height: 200px;
    width: 400px;
    align-items: center;
    padding-left: 50px;
}
#degree_text{
    width: 60px;
    height: 50px;
}
#direction{
    width: 50px;
    height: 50px;
    margin-left: 40px;
}
#rocker{
    grid-row-start: 1;
    grid-row-end: 1;
    grid-column-start: 1;
    grid-column-end: 1;
    height: 400px;
    width:  400px;
    background-image:url("/common/images/rocker_base.png");
    background-size: 100px;
    background-position: center;
    background-repeat: no-repeat;
}
#main_rocker{
    width: 60px;
    height: 60px;
}
#battery_bluetooth{
/*    grid-row-start: 0;*/
/*    grid-row-end: 0;*/
/*    grid-column-start: 0;*/
/*    grid-column-end: 0;*/
    width: 100%;
    height: 100px;
    padding-top: 20px;
    position: absolute;
    left: 15px;
    top: 10px;
}
#speed_notice{
/*    grid-row-start: 1;*/
/*    grid-row-end: 1;*/
/*    grid-column-start: 0;*/
/*    grid-column-end: 0;*/
    width: 100%;
    height: 150px;
    margin-top: 10px;
    position: absolute;
    left: 15px;
    top: 120px;
}
#set{
/*    grid-row-start: 2;*/
/*    grid-row-end: 2;*/
/*    grid-column-start: 0;*/
/*    grid-column-end: 0;*/
    width: 100%;
    height: 80px;
    padding-top: 5px;
    position: absolute;
    bottom: 5px;
    left: 5px;
}
.battery{
    width: 80px;
    height: 60px;
    position: absolute;
    left: 20px;
}

.low_power{
    width: 80px;
    height: 60px;
    margin-left: 20px;
    margin-right: 5px;

    animation-name: heartBeating;
    animation-duration: 1.5s;
    animation-delay: 0s;
    animation-fill-mode: backwards;
    animation-iteration-count: -1;
}

@keyframes heartBeating {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.3;
    }
}

.connection{
    width: 50px;
    height: 50px;
    position: absolute;
    right: 80px;
}
#speed_sign{
    width: 70px;
    height: 50px;
    margin-left: 20px;
    margin-right: 5px;
}
#warning{
    width:50px;
    height: 50px;
    margin-right: 40px;
    position: absolute;
    right: 35px;
}
.number{
    width: 100px;
    color: aqua;
    font-style: italic;
    font-size: 20px;
    position: absolute;
    left: 90px;
    top: 20px;
}
#speed_line{
    margin-top: 90px;
    margin-bottom: 80px;
    width: 25px;
    height: 200px;
    margin-right: 100px;
}

#init_number{
    position: absolute;
    bottom: 25px;
    left: 140px;
    width: 100px;
    color: aqua;
    font-style: italic;
    font-size: 30px;
}
#car_init{
    position: absolute;
    width: 80px;
    height: 80px;
    left: 60px;
    bottom: 0px;
}
#ap{
    width: 60px;
    height: 60px;
}
.stop{
    width: 60px;
    height: 60px;
    position: absolute;
    top: 210px;
    left: 80px;
}
#auto_mod{
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    right: 20px;
}
#auto_drive_face{
    width: 100%;
    height: 100%;
}
#map_area{
    background-image: url("/common/images/map.png");
    position: relative;
    border:2px solid black;
    background-size: 25px;
    width: 80%;
    height: 100%;
}
.map_sign{
    position: absolute;
    width: 50px;
    height: 50px;
}
#proportion_text{
    width: 90px;
    height: 30px;
    font-size: 20px;
    position: absolute;
    right: 30px;
    bottom: 25px;
}
#proportion{
    width: 50px;
    height: 50px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}
#distance{
    width: 300px;
    height: 50px;
    font-size: 20px;
    margin-left: 10px;
}
.control_sign{
    position: absolute;
    width: 50px;
    height: 50px;
}

#control_area{
    border:2px solid black;
    background-image: url("/common/images/background.png");
    background-size: 100%;
    width: 20%;
    height:100%;
}
#destination_sign{
    animation: rotate3d1 3s infinite;
}

@keyframes rotate3d1{
    0% {
        transform:rotate3d(0,20,0,0deg);
    }
    25% {
        transform:rotate3d(0,20,0,90deg);
    }
    50% {
        transform:rotate3d(0,20,0,180deg);
    }
    75% {
        transform:rotate3d(0,20,0,270deg);
    }
    100% {
        transform:rotate3d(0,20,0,360deg);
    }
}
